<!DOCTYPE html>
<html>
<head>
<title>员工绩效管理</title>
#parse("sys/header.html")
</head>
<body>
<div id="rrapp" v-cloak>
	<div v-show="showList">
		<div class="grid-btn">
			<div class="form-group col-sm-2">
				<input type="text" class="form-control" v-model="q.year" @keyup.enter="query" placeholder="年份">
			</div>
			<div class="form-group col-sm-2">
				<input type="text" class="form-control" v-model="q.mouth" @keyup.enter="query" placeholder="月">
			</div>
			<div class="form-group col-sm-2">
				<input type="text" class="form-control" v-model="q.company" @keyup.enter="query" placeholder="公司">
			</div>
			<div class="form-group col-sm-2">
				<input type="text" class="form-control" v-model="q.dept" @keyup.enter="query" placeholder="部门">
			</div>
			<div class="form-group col-sm-2">
				<input type="text" class="form-control" v-model="q.empName" @keyup.enter="query" placeholder="姓名">
			</div>
			<a class="btn btn-default" @click="query">查询</a>
			#if($shiro.hasPermission("employeeperformancemanagement:selectKPjl"))
			<a class="btn btn-primary" @click="selectKPjl"><i class="fa fa-plus"></i>&nbsp;显示考评信息</a>
			#end
			#if($shiro.hasPermission("employeeperformancemanagement:save"))
			<a class="btn btn-primary" @click="add"><i class="fa fa-plus"></i>&nbsp;新增</a>
			#end
			#if($shiro.hasPermission("employeeperformancemanagement:update"))
			<a class="btn btn-primary" @click="update"><i class="fa fa-pencil-square-o"></i>&nbsp;修改</a>
			#end
			#if($shiro.hasPermission("employeeperformancemanagement:delete"))
			<a class="btn btn-primary" @click="del"><i class="fa fa-trash-o"></i>&nbsp;删除</a>
			#end
			#if($shiro.hasPermission("employeeperformancemanagement:selfRating"))
			<a class="btn btn-primary" @click="selfRating"><i class="fa fa-pencil-square-o"></i>&nbsp;自评</a>
			#end
			#if($shiro.hasPermission("employeeperformancemanagement:superiorScoring"))
			<a class="btn btn-primary" @click="superiorScoring"><i class="fa fa-pencil-square-o"></i>&nbsp;上级评分总结</a>
			#end
			#if($shiro.hasPermission("employeeperformancemanagement:update"))
			<a class="btn btn-primary" @click="lock"><i class="fa fa-pencil-square-o"></i>&nbsp;锁定</a>
			#end
		</div>
	    <table id="jqGrid"></table>
	    <div id="jqGridPager"></div>
    </div>

	<div v-show="showTable">
		<div class="panel panel-default">
			<div class="panel-heading">考评信息</div>
			<table id="jqGridTable"></table>
			<div id="jqGridPagerTable"></div>
		</div>
    </div>
    
    <div v-show="!showList&&!show1" class="panel panel-default">
		<div class="panel-heading">{{title}}</div>
		<form class="form-horizontal">
									<div class="form-group">
			   	<div class="col-sm-2 control-label">年</div>
			   	<div class="col-sm-10">
			      <input type="text" class="form-control" v-model="employeePerformanceManagement.year" placeholder="年"/>
			    </div>
			</div>
									<div class="form-group">
			   	<div class="col-sm-2 control-label">月</div>
			   	<div class="col-sm-10">
			      <input type="text" class="form-control" v-model="employeePerformanceManagement.mouth" placeholder="月"/>
			    </div>
			</div>


            <div class="form-group">
                <div class="panel panel-default">
                <div class="panel-heading">考评信息</div>

                    <input type="button" class="btn btn-primary" @click="addCertificateItem" value="增加">
                    <template v-for="(evaluationInformation, index) in evaluationInformationList ">
                            <div class="form-group">
                                <div class="col-sm-1 control-label">绩效内容</div>
                                <div class="col-sm-2">
                                    <input type="text" class="form-control" v-model="evaluationInformation.achievementsContent" placeholder="绩效内容"/>
                                </div>
								<div class="col-sm-1 control-label">权重分值</div>
								<div class="col-sm-2">
									<input type="text" class="form-control" v-model="evaluationInformation.weightScore" placeholder="权重分值"/>
								</div>
								<input type="button" class="btn btn-del" @click="delCertificateItem(index)" value="删除">

							</div>

                </template>
                </div>
            </div>

							<div class="form-group">
				<div class="col-sm-2 control-label"></div> 
				<input type="button" class="btn btn-primary" @click="saveOrUpdate" value="确定"/>
				&nbsp;&nbsp;<input type="button" class="btn btn-warning" @click="reload" value="返回"/>
			</div>
		</form>
	</div>

	<div v-show="show1" class="panel panel-default">
		<div v-show="show2" class="panel-heading">{{title}}</div>
		<form class="form-horizontal">
			<div v-show="show2" class="form-group">
				<div class="col-sm-2 control-label">基本工资</div>
				<div class="col-sm-10">
					<input type="text" class="form-control" v-model="employeePerformanceManagement.baseSalary" placeholder="基本工资"/>
				</div>
			</div>
			<div v-show="show2" class="form-group">
				<div class="col-sm-2 control-label">绩效方式</div>
				<div class="col-sm-2">
					<label class="radio-inline"><input type="radio" v-model="employeePerformanceManagement.achievementsType" value="0" />绩效比例</label>
					<label class="radio-inline"><input type="radio" v-model="employeePerformanceManagement.achievementsType" value="1"/>绩效金额</label>
				</div>

			</div>
			<div v-show="show2" class="form-group">
				<div class="col-sm-2 control-label">绩效效果</div>
				<div class="col-sm-10">
					<input type="text" class="form-control" v-model="employeePerformanceManagement.achievementsResult" placeholder="绩效效果"/>
				</div>
			</div>
			<div v-show="show2" class="form-group">
				<div class="col-sm-2 control-label">其他补助</div>
				<div class="col-sm-10">
					<input type="text" class="form-control" v-model="employeePerformanceManagement.otherSubsidy" placeholder="其他补助"/>
				</div>
			</div>


			<div class="form-group">
				<div class="panel panel-default">
					<div class="panel-heading" >考评信息</div>
					<div class="form-group"><span style="float:left;margin-top:5px;"></span></div>

				<!--	<input type="button" class="btn btn-primary" @click="addCertificateItem" value="增加">-->
					<template v-for="(evaluationInformation, index) in evaluationInformationList " >
						<div class="form-group">
							<div class="col-sm-1 control-label">绩效内容</div>
							<div class="col-sm-2">
								<input type="text" class="form-control" v-model="evaluationInformation.achievementsContent"   readonly="readonly" placeholder="绩效内容"/>
							</div>
							<div class="col-sm-1 control-label">权重分值</div>
							<div class="col-sm-2">
								<input type="text" class="form-control" v-model="evaluationInformation.weightScore" placeholder="权重分值"  readonly="readonly" />
							</div>
						</div>

						<div v-show="!show2" class="form-group">
							<div class="col-sm-1 control-label">自我评分</div>
							<div class="col-sm-2">
								<input type="text" class="form-control" v-model="evaluationInformation.selfRating" placeholder="自我评分"/>
							</div>
							<div class="col-sm-1 control-label">自评说明</div>
							<div class="col-sm-2">
								<input type="text" class="form-control" v-model="evaluationInformation.selfInstruction" placeholder="自评说明"/>
							</div>
						</div>

						<div v-show="show2" class="form-group">
							<div class="col-sm-1 control-label">上级评分</div>
							<div class="col-sm-2">
								<input type="text" class="form-control" v-model="evaluationInformation.superiorScoring" placeholder="上级评分"/>
							</div>
							<div class="col-sm-1 control-label">上级评分说明</div>
							<div class="col-sm-2">
								<input type="text" class="form-control" v-model="evaluationInformation.superiorInstruction" placeholder="上级评分说明"/>
							</div>

							<!--<input type="button" class="btn btn-del" @click="delCertificateItem(index)" value="删除">-->

						</div>

					</template>
				</div>
			</div>

			<div class="form-group">
				<div class="col-sm-2 control-label"></div>
				<input type="button" class="btn btn-primary" @click="saveOrUpdate" value="确定"/>
				&nbsp;&nbsp;<input type="button" class="btn btn-warning" @click="reload" value="返回"/>
			</div>
		</form>
	</div>
</div>



<script src="${rc.contextPath}/js/hr/employeeperformancemanagement.js?_${date.systemTime}"></script>

</body>
</html>